<template>
    <div class="playMode">
        <div class="playMode-info" @click="changePlayModeType()">
            <div class="allCycle" v-if="currentPlayMode == 1">
                <div class="img-box">
                    <slot name="xunhuan">
                        <img src="../../assets/images/循环播放.png" alt=""
                    /></slot>
                </div>
            </div>
            <div class="singleCycle" v-else-if="currentPlayMode == 2">
                <div class="img-box">
                    <slot name="danqu">
                        <img src="../../assets/images/单曲循环.png" alt=""
                    /></slot>
                </div>
            </div>
            <div class="randomCycle" v-else-if="currentPlayMode == 3">
                <div class="img-box">
                    <slot name="suiji">
                        <img src="../../assets/images/随机播放.png" alt=""
                    /></slot>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import { createNamespacedHelpers } from "vuex";
import { formatTime, debounce, lazyload } from "../../utils/common";
const { mapState, mapMutations, mapActions } = createNamespacedHelpers(
    "playMusicModel"
);

export default {
    data() {
        return {
            show: 1,
        };
    },
    mounted() {},

    computed: {
        ...mapState(["currentPlayMode"]),
    },
    methods: {
        ...mapMutations(["changePlayModeType"]),
    },
};
</script>

<style lang='scss' scoped>
@import "../../assets/sass/playMusicModel/playMode.scss";
</style>